﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SMSList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.SMSList" %>

<form id="pagerForm" method="post" action="UserModel/SMSList.aspx">
<input type="hidden" name="Mobile" value="<%=Mobile %>" />

<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="UserModel/SMSList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    手机号： <input name="Mobile" type="text" value="<%=Mobile %>"  />
                </td>
                
                 <td>
                    <div class="subBar">
                    <ul>
                        <li>
                            <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                        </li>
                    </ul>
                    </div>
                </td>
            </tr>
        </table>
        
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="1500" layouth="115">
        <thead>
            <tr  >                
                <th width="60" orderField="ID" class="asc">
                    序号
                </th>
                <th width="140" orderField="SMSType" class="asc">
                    短信类型
                </th>
                <th width="120" orderField="Mobile" class="asc">
                    手机
                </th>
               <th width="60" orderField="SMSState" class="asc">
                    状态
               </th>
               <th width="120" orderField="RealSendDate" class="asc">
                    发送时间
               </th>
               <th width="1000">
                    短信内容
               </th>               
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr >
				<td><%# Eval("ID")%></td>
				<td><%# Eval("SMSType")%></td>
				<td><%# GetMobileLength(Eval("Mobile"))%></td>			
				<td>
                    <%# Convert.ToBoolean( Eval("SMSState"))?"已发送":"未发送"%>
                </td>				
                <td><%# Eval("RealSendDate")%></td>
               	<td><%# Eval("SMSContent")%></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
